package com.czwj.service.impl;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.czwj.dao.SummaryUserMapper;
import com.czwj.entities.Role;
import com.czwj.entities.SummaryUser;
import com.czwj.service.SummaryUserService;

/**
* @ClassName: SummaryUserServiceImpl
* @Description: TODO
* @author H
* @date 2019年12月27日
*
*/
@Service
public class SummaryUserServiceImpl implements SummaryUserService{
	@Resource
	SummaryUserMapper mapper;
	/** 
	* 
	* @param summaryUser
	* @see com.czwj.service.SummaryUserService#insert(com.czwj.entities.SummaryUser)
	*/
	@Override
	public int insert(SummaryUser summaryUser){
		// TODO Auto-generated method stub
		return this.mapper.insertSelective(summaryUser);
	}
	/** 
	* 
	* @param id
	* @return
	* @see com.czwj.service.SummaryUserService#deleteByUser(java.lang.Integer)
	*/
	@Override
	public int deleteByUser(Integer id){
		// TODO Auto-generated method stub
		return this.mapper.deleteByUser(id);
	}
	/** 
	* 
	* @param params
	* @return
	* @see com.czwj.service.SummaryUserService#selectByCompany(java.util.Map)
	*/
	@Override
	public List<Role> selectByCompany(Map<String,Object> params){
		// TODO Auto-generated method stub
		return this.mapper.selectByCompany(params);
	}
	/** 
	* 
	* @param params
	* @return
	* @see com.czwj.service.SummaryUserService#countByCompany(java.util.Map)
	*/
	@Override
	public int countByCompany(Map<String,Object> params){
		// TODO Auto-generated method stub
		return this.mapper.countByCompany(params);
	}
	/** 
	* 
	* @return
	* @see com.czwj.service.SummaryUserService#selectAll()
	*/
	@Override
	public List<SummaryUser> selectAll(){
		// TODO Auto-generated method stub
		return this.mapper.selectAll();
	}
	/** 
	* 
	* @param id
	* @return
	* @see com.czwj.service.SummaryUserService#deleteBySummary(int)
	*/
	@Override
	public int deleteBySummary(int id){
		// TODO Auto-generated method stub
		return this.mapper.deleteBySummary(id);
	}
}
